<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        .box {
            display: flex;
            flex-direction: column;
            align-items: center;
            border: 1px solid #ccc;
            width: 200px;
            overflow: hidden;
            margin-right: 40px;
        }
        
        .box div {
            width: 100%;
            min-height: 50px;
            transition: all 3s;
        }
        
        p {
            width: 100%;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .menuItem {
            transition: all 3s;
            display: none;
        }
        
        .box>div {
            display: block;
        }
    </style>
</head>

<body>
    <!-- 渲染位置 -->
    <div class="box"></div>

    <script src="./mock/index.js">
    </script>
    <script src="./index.js"></script>
</body>

</html>